package org.stream.answerduel.vo;

import java.util.ArrayList;
import java.util.List;

import org.springframework.beans.BeanUtils;

import lombok.Data;

@Data
public class PlayingUser extends MatchingUser
{
    private boolean isReady = false;
    private int totalScore;
    private List<AnswerDetailsVo> answers = new ArrayList<AnswerDetailsVo>(10);

    public PlayingUser(MatchingUser matchingUser)
    {
        BeanUtils.copyProperties(matchingUser, this);
    }

    public PlayingUser(WaitingUser waitingUser)
    {
        BeanUtils.copyProperties(waitingUser, this);
    }

    public PlayingUser(UserVo userVo)
    {
        BeanUtils.copyProperties(userVo, this);
    }
}